﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RegionEdit.ascx.cs" Inherits="Controls_BackEnd_RegionEdit" %>
<%@ Import Namespace="Business" %>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <!-- start content-outer -->
        <div id="content-outer">
            <!-- start content -->
            <div id="content">
                <div id="page-heading">
                    <h1>
                        <%=string.Format(Resources.Resource.Update,Resources.Resource.Group) %></h1>
                </div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowleft.jpg"
                                width="20" height="300" alt="" />
                        </th>
                        <th class="topleft">
                        </th>
                        <td id="tbl-border-top">
                            &nbsp;
                        </td>
                        <th class="topright">
                        </th>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowright.jpg"
                                width="20" height="300" alt="" />
                        </th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left">
                        </td>
                        <td>
                            <!--  start content-table-inner -->
                            <div id="content-table-inner">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                    <tr valign="top">
                                        <td>
                                            <!-- start id-form -->
                                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                                <tr>
                                                    <th valign="top">
                                                       <%=string.Format(Resources.Resource.Name,Resources.Resource.Region.ToLower()) %> :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtName" class="inp-form" MaxLength="128" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                         <%=Resources.Resource.Alias %>:
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtAlias" class="inp-form" MaxLength="256" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>                                                       
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                    <td valign="top">
                                                        <asp:Button ID="btnSave" OnClientClick="if(!CheckNull())return false;" class="form-submit"
                                                            OnClick="AllCommand" runat="server" />
                                                        <asp:Button ID="btnReset" class="form-reset" OnClick="AllCommand" runat="server" />
                                                        &nbsp;<asp:Button Style="margin-left: 5px;" ID="btnBack" class="form-back" OnClick="AllCommand"
                                                            Text="Back" runat="server" />
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- end id-form  -->
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/blank.gif" width="695"
                                                height="1" alt="blank" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear">
                                </div>
                            </div>
                            <!--  end content-table-inner  -->
                        </td>
                        <td id="tbl-border-right">
                        </td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft">
                        </th>
                        <td id="tbl-border-bottom">
                            &nbsp;
                        </td>
                        <th class="sized bottomright">
                        </th>
                    </tr>
                </table>
                <div class="clear">
                    &nbsp;</div>
            </div>
            <!--  end content -->
            <div class="clear">
                &nbsp;</div>
        </div>
        <!--  end content-outer -->

        <script language="javascript" type="text/javascript">CheckNull=function(){var control=$control('<%=txtName.ClientID %>');if(control.value.length<1 || Trim(control.value).length<1){control.focus();control.className='inp-form-error';jAlert('<%=string.Format(Resources.Resource.InputData,string.Format(Resources.Resource.Name.ToLower(),Resources.Resource.Region.ToLower())) %>','<%=Resources.Resource.Warning %>');return false;}control.className='inp-form';control=$control('<%=txtAlias.ClientID %>');if(control.value.length<1 || Trim(control.value).length<1){control.focus();control.className='inp-form-error';jAlert('<%=string.Format(Resources.Resource.InputData,Resources.Resource.Alias.ToLower()) %>','<%=Resources.Resource.Warning %>');return false;}control.className='inp-form';return true;}</script>

        <script type="text/javascript">
reloadpage =function() {	
}
        </script>

    </ContentTemplate>
</asp:UpdatePanel>
